export interface PaperType {
	type?: string;
	width: number;
	height: number;
}

export interface PrintElement {
	tid: string;
	text: string;
	type: string;
	data: any;
	options?: {
		title?: string;
		field?: string;
		fontSize?: number;
		testData?: any;
		height?: number;
		fontFamily?: string;
		fontWeight?: string;
		letterSpacing: number;
		color?: number;
		textDecoration?: string;
		textAlign?: string;
		textContentVerticalAlign?: string;
		textContentHorizontalAlign?: string;
		textWrap?: boolean;
		textWrapWidth?: number;
		textWrapHeight?: number;
		textOverflow?: string;
		textOverflowWidth?: number;
		textOverflowHeight?: number;
	};
}

export interface PrintDesignerProps {
	// 组件 props 类型定义
}

export interface ToolbarProps {
	paperTypes: Record<string, PaperType>;
	curPaperType: string;
	scaleValue: number;
	onSetPaper: (type: string, value: PaperType) => void;
	onChangeScale: (zoomIn: boolean) => void;
	onSetElsAlign: (alignType: string) => void;
	onSelectAll: () => void;
	onPreView: () => void;
	onPrint: () => void;
	onClearPaper: () => void;
	onSave: () => void;
	onShowJsonDialog: () => void;
	onOtherPaper: () => void;
	paperWidth: string;
	paperHeight: string;
	setPaperWidth: (value: string) => void;
	setPaperHeight: (value: string) => void;
}
